'''
Created on Mar 8, 2010

@author: mkiyer
'''

from veggie.db.sample.samplepools import write_sample_pools

if __name__ == '__main__':
    from optparse import OptionParser
    import sys
    parser = OptionParser()
    options, args = parser.parse_args()
    sample_xml_file = args[0]
    sample_db_file = args[1]
    qc_filter = True if args[2].upper() == 'YES' else False
    write_sample_pools(sys.stdout, sample_xml_file, sample_db_file, qc_filter)
